package book.mapper;

import book.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {
    /**
     * 用户登录
     */
    @Select("select * from user_info where user_name=#{userName} and delete_flag=0")
    UserInfo selectByuserName(UserInfo userInfo);
}
